﻿using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;

namespace Pay.DTO {
	/// <summary>
	/// 区域表：mc_Region
	/// </summary>
	[Serializable]
	[JsonObject(MemberSerialization.OptOut)]
	public class region_dto {
		public region_dto() {
			children = new List<region_dto>();
		}

		/// <summary>
		/// id
		/// </summary>
		public long id { get; set; }
		/// <summary>
		/// 名称
		/// </summary>
		public string name { get; set; }
		/// <summary>
		/// 排序
		/// </summary>
		[JsonIgnore]
		public long sort { get; set; }
		/// <summary>
		/// 上级分类
		/// </summary>
		[JsonIgnore]
		public long parent_id { get; set; }
		/// <summary>
		/// 分类的深度
		/// </summary>
		[JsonIgnore]
		public int depth { get; set; }
		/// <summary>
		/// 分类的路径（以|分离）
		/// </summary>
		[JsonIgnore]
		public string path { get; set; }
		/// <summary>
		/// 全称
		/// </summary>
		public string full_name { get; set; }
		/// <summary>
		/// 省市区全称
		/// </summary>
		public string region_name { get; set; }
		/// <summary>
		/// 首字母
		/// </summary>
		public string first_letter { get; set; }
		/// <summary>
		/// 区域代码
		/// </summary>
		public string area_code { get; set; }
		/// <summary>
		/// 所有下级
		/// </summary>
		public List<region_dto> children { get; set; }
	}
}